-- GENERATED SPELL FOR [Mana Remnant] --


function spell0_11483(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(14514,pUnit)
pUnit:RegisterEvent('Sorts_11483', 1320, 1)
end

function spell1_11483(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(15659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11483', 3000, 1)
end

function Sorts_11483(pUnit, Event)
local choix_sorts_11483 = math.random(0, 1)
if choix_sorts_11483 == 0 then
pUnit:RegisterEvent('spell0_11483', 1, 1)
end
if choix_sorts_11483 == 1 then
pUnit:RegisterEvent('spell1_11483', 1, 1)
end
end

function mob11483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11483', math.random(1500, 3000), 1)
end

function mob11483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11483, 1, 'mob11483_Action')
RegisterUnitEvent(11483, 2, 'mob11483_Leave')
RegisterUnitEvent(11483, 3, 'mob11483_Kill')
RegisterUnitEvent(11483, 4, 'mob11483_Die')
